

FLAGS=-lcublas -lcufft -lcudart -lcurand -lpthread -DDOPROF


all:
	mkdir -p output
	nvcc -c prof.cpp       -o output/prof.o                    $(FLAGS)
	nvcc filter.cu         -o output/filter      output/prof.o $(FLAGS)
	nvcc conv.cu           -o output/conv        output/prof.o $(FLAGS)
	nvcc stft.cu           -o output/stft        output/prof.o $(FLAGS)
	nvcc kalman.cu         -o output/kalman      output/prof.o $(FLAGS)
	nvcc filter_xt.cu      -o output/filter_xt   output/prof.o $(FLAGS)
	nvcc resample.cu       -o output/resample    output/prof.o $(FLAGS)
	# nvcc main_613.cu     -o output/main_613    output/prof.o $(FLAGS)
	# nvcc main_613_1.cu   -o output/main_613_1  output/prof.o $(FLAGS)

clean:
	rm -rf output
